package org.dczl.system.mapper;

import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.dczl.system.domain.DpLab;
import org.dczl.system.domain.vo.DpLabVo;
import org.dczl.common.mybatis.core.mapper.BaseMapperPlus;

import java.util.List;

/**
 * 实验室Mapper接口
 *
 * @author jia
 * @date 2025-04-16
 */
public interface DpLabMapper extends BaseMapperPlus<DpLab, DpLabVo> {

    @Results({
            @Result(column = "images", property = "images", typeHandler = FastjsonTypeHandler.class)
    })
    @Select("select * from dp_lab where del_flag = 0")
    List<DpLabVo> queryList();

}
